package jinglei.Sci.Learn.Lambda;

import java.util.function.Consumer;

public class ConsumerSample {
    public static void main(String[] args) {
        output(s-> System.out.println("想控制台打印"+s));
    }
    public static  void output(Consumer<String> consumer)
    {
        String text="天将降大任于斯人也，必先苦其心志，劳其筋骨，饿其体肤，空乏其身。。。。";
        consumer.accept(text);
    }
}
